<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="js/vue.js"></script>
    <div id="app">
        <!-- 1.修饰符：lazy -->
        <!-- 用户希望按回车 -->
        <input type="text" v-model.lazy="msg">
        <h2>{{msg}}</h2>
        <!-- 2.修饰符.number -->
        <!-- 输入框默认拿到的值是字符串 -->
        <input type="number" v-model.number="age">
        <h2>{{age}}</h2>

        <!-- 3.修饰符.trim -->
        <input type="" v-model="name "> 
        <h2>{{name}}</h2>
    </div>

    <script>
        var vm = new Vue({
            el: "#app",
            data: {
                msg:'hello',
                age:10,

            },

        })
    </script>

</body>

</html>